home *** CD-ROM | disk | FTP | other *** search
/ Meeting Pearls 1 / Meeting Pearls Vol 1 (1994).iso / installed_progs / linux / tools / amiga / gzip-1.1.2.lha / gzip-1.1.2 / msdos / Makefile.msc < prev    next >
Encoding:
Makefile  |  1993-04-19  |  2.7 KB  |  113 lines

  1. # Makefile for gzip
  2. # Microsoft C 5.1 or 6.0.
  3.  
  4. # To use, do "make makefile.msc"
  5.  
  6. # WARNING: the small model is not supported. The compact model is used
  7. # here. If you want to use the large model, add -D__LARGE__ to ASFLAGS
  8. # Add -DSMALL_MEM to CFLAGS if you wish to reduce the memory
  9. # requirements. Add -DNO_ASM to CFLAGS and remove match.obj from OBJI if
  10. # you do not have masm.
  11.  
  12. # ------------- Microsoft C 5.1 or 6.0 -------------
  13. MODEL=-AC
  14. FP=
  15. CFLAGS=-Ox -nologo $(MODEL)
  16. BFLAGS=-Oait -Gs -nologo $(MODEL)
  17. # BFLAGS are the 'bug workaround' flags.
  18. CC=cl
  19. LD=link
  20. LDFLAGS=/e/st:0x1000/noe
  21. #     If you use lzexe as recommended, remove /e from LDFLAGS
  22. AS=masm
  23. #     For MSC 6.0, use: AS=ml 
  24. ASFLAGS=-ml -t
  25. # Add -DDYN_ALLOC to ASFLAGS if you have defined it in tailor.h or CFLAGS
  26. LIB = c:\c51\lib
  27.  
  28. # ------------- Common declarations:
  29. STRIP=rem
  30. #    If you don't have lzexe, get it (by ftp on wuarchive.wustl.edu
  31. #    in /mirrors/msdos/filutl/lzexe91e.zip). Then define:
  32. #STRIP=lzexe
  33. #    Or if you've registered PKLITE, then define:
  34. #STRIP=pklite
  35. #    This makes a big difference in .exe size (and possibly load time)
  36.  
  37. O=.obj
  38. OBJA=match$(O) $(LIB)\setargv$(O)
  39. ALLOCA=alloca$(O)
  40.  
  41. # ------------- Used by install rule
  42. # set BIN to the directory you want to install the executables to
  43. BIN = c:\bin
  44.  
  45. # variables
  46. OBJ1 = gzip$(O) zip$(O) deflate$(O) trees$(O) bits$(O) unzip$(O) inflate$(O) \
  47.        util$(O)
  48. OBJ2 = crypt$(O) lzw$(O) unlzw$(O) unpack$(O) getopt$(O) $(OBJA) $(ALLOCA)
  49.  
  50. gzip.obj: gzip.c gzip.h tailor.h crypt.h revision.h lzw.h
  51.     $(CC) -c $(CFLAGS) $*.c
  52.  
  53. zip.obj: zip.c gzip.h tailor.h crypt.h
  54.     $(CC) -c $(CFLAGS) $*.c
  55.  
  56. deflate.obj: deflate.c gzip.h tailor.h
  57.     $(CC) -c $(CFLAGS) $*.c
  58.  
  59. trees.obj: trees.c gzip.h tailor.h
  60.     $(CC) -c $(CFLAGS) $*.c
  61.  
  62. bits.obj: bits.c gzip.h tailor.h crypt.h
  63.     $(CC) -c $(CFLAGS) $*.c
  64.  
  65. unzip.obj: unzip.c gzip.h tailor.h crypt.h
  66.     $(CC) -c $(CFLAGS) $*.c
  67.  
  68. inflate.obj: inflate.c gzip.h tailor.h
  69.     $(CC) -c $(CFLAGS) $*.c
  70.  
  71. util.obj: util.c gzip.h tailor.h crypt.h
  72.     $(CC) -c $(BFLAGS) $*.c
  73.  
  74. crypt.obj: crypt.c gzip.h tailor.h crypt.h
  75.     $(CC) -c $(CFLAGS) $*.c
  76.  
  77. lzw.obj: lzw.c gzip.h tailor.h
  78.     $(CC) -c $(CFLAGS) $*.c
  79.  
  80. unlzw.obj: unlzw.c gzip.h tailor.h lzw.h
  81.     $(CC) -c $(CFLAGS) $*.c
  82.  
  83. unpack.obj: unpack.c gzip.h tailor.h
  84.     $(CC) -c $(CFLAGS) $*.c
  85.  
  86. tailor.obj: tailor.c gzip.h tailor.h
  87.     $(CC) -c $(CFLAGS) $*.c
  88.  
  89. getopt.obj: getopt.c getopt.h
  90.     $(CC) -c $(CFLAGS) $*.c
  91.  
  92. alloca.obj: alloca.c
  93.      $(CC) -c $(CFLAGS) $*.c
  94.  
  95. match.obj:    match.asm
  96.     $(AS) $(ASFLAGS) match;
  97.  
  98. # we must cut the command line to fit in the MS/DOS 128 byte limit:
  99. gzip.exe: $(OBJ1) $(OBJ2)
  100.     echo $(OBJ1)+ > gzip.rsp
  101.     echo $(OBJ2); >> gzip.rsp
  102.     $(LD) $(LDFLAGS) @gzip.rsp
  103.     del gzip.rsp
  104.     $(STRIP) gzip.exe
  105.  
  106. install: gzip.exe
  107.     copy /b gzip.exe $(BIN)
  108.     copy /b gzip.exe $(BIN)\gunzip.exe
  109.  
  110. #clean:
  111. #    del *.obj
  112. #    del *.exe
  113.